import {Component} from 'react'

class One extends Component{

    constructor(props){
        super(props)
        this.state={
            msg1:""
        }
       
    }

    render(){
        return (
           <div>
               <h1>组件1</h1>
               <h2>{this.props.val}</h2>
           </div> 
        )

    }
}

export default One

